<?php

namespace app\api\validate;

use think\Validate;

class FranchiseValidate extends Validate
{

    protected $rule = [
        'name' => 'require',
        'email' => 'require',
        'city' => 'require',
        'shop_address' => 'require',
        'desc' => 'require',
        'exits_exp' => 'require|in:100,200',
        'budget' => 'require',
        'opening_time' => 'require',
    ];

    protected $message = [
        'name.require' => 'Please fill in your full name.',
        'email.require' => 'Please fill in the email address.',
        'city.require' => 'Please fill in the city you are currently in',
        'shop_address.require' => 'Please fill in the address where you wish to open a store',
        'desc.require' => 'Please fill in your current professional background',
        'exits_exp.require' => 'Please choose whether you have entrepreneurial experience or not',
        'budget.require' => 'Please fill in your store opening budget',
        'opening_time.require' => 'Please fill in your estimated business hours',
    ];

    protected $scene = [
        'create' => ['name', 'email', 'city', 'shop_address', 'desc', 'exits_exp', 'budget', 'opening_time'],
    ];
}